const electron = require('electron');
const ipcRenderer = electron.ipcRenderer;
const dialog = electron.dialog;
module.exports = {
    //发送事件
    send: function (event, arg, func) {
        ipcRenderer.send(event, arg);
        if (typeof func === 'function') {
            ipcRenderer.on('onRecv_' + event, func);
        }
    }
}
